<script src="<?php echo $html->url(DS.'newsletters'.DS.'js'.DS.'jquery-ui-personalized-1.5.2.packed.js');?>"></script>
<script src="<?php echo $html->url(DS.'newsletters'.DS.'js'.DS.'sprinkle.js');?>"></script>

<div class="newsletter form">
<?php echo $form->create('Newsletter');?>
	<fieldset>
 		<legend><?php __('Edit Newsletter');?></legend>
	<?php
		
		echo $form->input('subject');
	?>
	To insert the dynamic greeting message anywhere in mail body, copy paste this code: <br>&lt;?=$greetMsg;?&gt;<br>
		<div id="tabvanilla" class="widget">

		    <ul class="tabnav">
			<li><a href="#popular">HTML</a></li>
			<li><a href="#recent">TEXT</a></li>
		    </ul>
		
		    <div id="popular" class="tabdiv">
			<?php echo $form->input('body_html', array('type'=>'textarea', 'rows'=>10, 'cols'=>'50')); ?>
		    </div><!--/html-->
		    
		    <div id="recent" class="tabdiv">
			<?php echo $form->input('body_text', array('type'=>'textarea', 'rows'=>10, 'cols'=>'50')); ?>
		    </div><!--/text-->
		</div><!--/widget-->
	<?php
		
		echo $form->input('id', array('type'=>'hidden'));
	
	?>
	</fieldset>
<?php echo $form->end(__('Submit'));?>
</div>
